package com._5704.website.aop;

import com._5704.website.exception.WebsiteException;
import com._5704.website.exception.WebsiteExceptionEnum;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
import org.springframework.validation.BindingResult;

@Component
@Aspect
@Deprecated
public class DataBindingAop {
    @Pointcut("@annotation(com._5704.website.annotation.DataBinding)")
    public void pointCut(){}

    @Around("pointCut()")
    public Object before(ProceedingJoinPoint joinPoint) {
        System.out.println("DataBindingAop");
        try {
            joinPoint.proceed();
        } catch (Throwable throwable) {
            throwable.printStackTrace();
        }

        return null;
    }
}
